package com.source.multithread.controller;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.stereotype.Component;
import org.springframework.web.context.support.RequestHandledEvent;

/**
 * @Author wengqy
 * @Date 2021/1/8
 *ContextRefreshedEvent
 * ContextStartedEvent
 * ContextStoppedEvent
 * ContextClosedEvent
 * RequestHandledEvent
 */
@Component
public class ApplicationListenerDemo5 implements ApplicationListener<RequestHandledEvent> {

    @Override
    public void onApplicationEvent(RequestHandledEvent requestHandledEvent) {
        System.out.println("*********************************RequestHandledEvent*************************");

    }
}
